package com.lmk.ms.common.dto.log;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 系统日志参数
 *
 * @author laomake@hotmail.com
 * @version 1.0
 * @date 2022/7/3
 */
@Data
@Schema(description = "统日志参数")
public class ApiLogParameter {

    @Schema(description = "日志标题")
    private String title;

    @Schema(description = "用户ID")
    private String uid;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "IP地址")
    protected String ip;

    @Schema(description = "请求URL")
    protected String url;

    @Schema(description = "用户操作")
    protected String operate;

    @Schema(description = "请求方式")
    protected String method;

    @Schema(description = "日志类型：0.公共类型，1.前台操作，2.后台操作，3.系统自动")
    protected String type = "1";

    @Schema(description = "日志级别：debug、info、warn、error")
    protected String level = "info";

    @Schema(description = "创建时间")
    protected LocalDateTime createTime;
}
